package com.books;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @ClassName: BookApplication
 * @Description:
 * @Date: 2023/12/4 13:46
 * @author: <chuanwan.zhu@haohanit.com.cn>
 * @version: 1.0
 * @since: JDK 1.8
 */
@Slf4j
@EnableTransactionManagement // 启注解事务管理
@EnableScheduling
@SpringBootApplication
@RequiredArgsConstructor
@MapperScan({"com.books.mapper"})
public class BookApplication {
    public static void main(String[] args) {
        SpringApplication.run(BookApplication.class, args);
    }
}
